package day09;

public class AutomibileTest {
    public static void main(String[] args) {
        // 创建Truck类对象
        Truck t1 = new Truck("北汽", "苏E12345", "大型");
        t1.show();
        System.out.println("租金是：" + t1.getRent(1));
        System.out.println(t1.toString());
        // 创建Bus类对象
        Bus b1 = new Bus("宇通", "苏U12345", 32);
        b1.show();
        System.out.println("租金是：" + b1.getRent(1));
    }
}
